<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	template="/layout/dialogLayout.xhtml">

	<ui:param name="param_panelTitle" value="添加选项信息" />
	<ui:param name="param_panelWidth" value="300px" />

	<ui:define name="content">
		<h:form>
			<div style="width: 100%;">
				<rg:fieldSet column="auto" labelWidth="80px">
					<rg:inputText id="optionValue" label="选项值"
						value="#{addQuestionExtendFieldAction.questionExtendField.optionValue}"
						required="true" />
					<rg:inputText id="optionDesc" label="选项描述"
						value="#{addQuestionExtendFieldAction.questionExtendField.optionDesc}"
						required="true" />
				</rg:fieldSet>
			</div>
			<div style="width: 100%; text-align: center;">
				<h:commandButton styleClass="button" value="添加"
					onclick="UI.instance.showMask()"
					oncomplete="UI.instance.reRender('reRenderQuestionExtendFieldTable');UI.instance.closeDialog()；"
					actionListener="#{addQuestionExtendFieldAction.addQuestionExtendField()}" />

				<h:commandButton styleClass="button" value="取消"
					onclick="UI.instance.closeDialog()" />

			</div>
		</h:form>
	</ui:define>
</ui:composition>
